Skip to content

Conversation

@vEnhance
Copy link
Owner

rather than using import export

Add a new admin action "Set default artwork paths based on slug" that
automatically assigns default artwork file paths to UnitGroup objects
based on their slug field. The action sets:
- artwork to "artwork/{slug}.png"
- artwork_thumb_md to "artwork-thumb-md/{slug}.png"
- artwork_thumb_sm to "artwork-thumb-sm/{slug}.png"

This makes it easy to batch update multiple unit groups from the admin
interface without manually editing each one.

Added comprehensive unit tests to verify the action works correctly
with both single and multiple unit groups.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 21176587722

Details

  • 40 of 40 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 93.521%

Totals Coverage Status
Change from base Build 20909751257: 0.03%
Covered Lines: 8483
Relevant Lines: 8896

💛 - Coveralls

@vEnhance vEnhance merged commit 2c75087 into main Jan 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants